package chixing.day12.work.w1;

public class MailAddress {
    private String name;
    private String telno;
    private String street;
    private String city;
    private String state;
    private String country;
    private String pincode;

    public MailAddress(String name, String telno, String street, String city,
                       String state, String country, String pincode) {
        this.name = name;
        this.telno = telno;
        this.street = street;
        this.city = city;
        this.state = state;
        this.country = country;
        this.pincode = pincode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelno() {
        return telno;
    }

    public void setTelno(String telno) {
        this.telno = telno;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getPincode() {
        return pincode;
    }

    public void setPincode(String pincode) {
        this.pincode = pincode;
    }

    @Override
    public String toString() {
        return "姓名: " + name + "\n" +
                "电话: " + telno + "\n" +
                "地址: " + street + ", " + city + ", " + state + "\n" +
                "国家/地区: " + country + "\n" +
                "邮编: " + pincode + "\n" +
                "------------------------";
    }
}

